from django.urls import path
from . import views


urlpatterns = [
    # 请求省份数据:GET /areas/
    path('areas/', views.ProvinceAreasView.as_view()),

    # 请求市区数据:GET /areas/(?P<pk>[1-9]\d+)/
    path('areas/<int:pk>/', views.SubAreasView.as_view()),
]